From: Adel Gadllah Date: Thu, 25 Jul 2013 22:21:30 +0000 (+0200) Subject: screenShield: Don't lock after crash if locking is disabled X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~1982 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=73362beb0b8006c424c56b3903956c8e1b029aea;p=gnome-shell.git screenShield: Don't lock after crash if locking is disabled When the user has disabled locking we shouldn't lock the screen. https://bugzilla.gnome.org/show_bug.cgi?id=704884 --- diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js index 03e457c90..6aef53b1a 100644 --- a/js/ui/screenShield.js +++ b/js/ui/screenShield.js @@ -1335,6 +1335,8 @@ const ScreenShield = new Lang.Class({ // If the previous shell crashed, and gnome-session restarted us, then re-lock lockIfWasLocked: function() { + if (!this._settings.get_boolean(LOCK_ENABLED_KEY)) + return; let wasLocked = global.get_runtime_state('b', LOCKED_STATE_STR); if (wasLocked === null) return;